@extends('admin.layout.base')

@section('content')
    <div class="layui-card-body">
        <div class="layui-form" lay-filter="">
            <form class="layui-form" data-url="{{route('forum.update')}}">
                {{csrf_field()}}

                <input type="hidden" name="id" value="{{$data['id']}}">
                <div class="layui-form-item">
                    <label class="layui-form-label">标签</label>
                    <div class="layui-input-inline">
                        <select name="tag" class="search-data" lay-verify="required">
                            <option value="">请选择</option>
                            <option value="1" {{$data['tag']=='<span class="layui-badge layui-bg-gray">粗品</span>'?'selected':''}}>粗品</option>
                            <option value="2" {{$data['tag']=='<span class="layui-badge fly-badge-accept">一般</span>'?'selected':''}}>一般</option>
                            <option value="3" {{$data['tag']=='<span class="layui-badge layui-bg-blue">上品</span>'?'selected':''}}>上品</option>
                            <option value="4" {{$data['tag']=='<span class="layui-badge layui-bg-orange">精品</span>'?'selected':''}}>精品</option>
                        </select>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-inline">
                        <input type="radio" name="status" value="0" title="通过" {{$data['status']==0?'checked':''}}>
                        <input type="radio" name="status" value="2" title="拒绝" {{$data['status']==2?'checked':''}}>
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">置顶</label>
                    <div class="layui-input-inline">
                        <input type="radio" name="is_top" value="1" title="是　" {{$data['is_top']==1?'checked':''}}>
                        <input type="radio" name="is_top" value="0" title="否" {{$data['is_top']==0?'checked':''}}>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-sm" lay-submit lay-filter="submitIng">提 交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection
